//
//  DcAFNetWorkTool.h
//  艾薇贝儿
//
//  Created by dllo on 15/9/1.
//  Copyright (c) 2015年 dllo－－邴鹏超. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef  enum :NSUInteger{
    DcData,
    DcJSON,
    DCXML,
}DcResult;

typedef  enum:NSUInteger{
    DcResultJSON,
    DcResultString,
}DcResultStyle;

@interface DcAFNetWorkTool : NSObject


+(void)getUrl:(NSString * )url
         body:(id)body
       result:(DcResult)result
  headerFlile:(NSDictionary *)headerFlile 
      success:(void (^)(id result))success
      failure:(void (^)(NSError *error))failure;

+(void)postUrl:(NSString * )url
         body:(id)body
       result:(DcResult)result
 requestStyle:(DcResultStyle)requestStyle
  headerFlile:(NSDictionary *)headerFlile
      success:(void (^)(id result))success
      failure:(void (^)(NSError *error))failure;
@end
